package tech.xs.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tech.xs.dao.LeaveDao;
import tech.xs.pojo.Employee;
import tech.xs.pojo.Leave;
import tech.xs.service.LeaveService;
@Service
public class LeaveServiceImpl implements LeaveService {
	@Autowired
	private LeaveDao leaveDao;
	@Override
	public List<Leave> list(Employee employee, Date start, Date stop, Integer pageNo, Integer pageSize) {
		// TODO Auto-generated method stub
		return leaveDao.list(employee, start, stop, pageNo, pageSize);
	}

	@Override
	public Integer count(Employee employee, Date start, Date stop) {
		// TODO Auto-generated method stub
		return leaveDao.count(employee, start, stop);
	}

	@Override
	public void save(Leave leave) {
		// TODO Auto-generated method stub
		leaveDao.save(leave);
	}

	@Override
	public Leave getLeave(Leave leave) {
		// TODO Auto-generated method stub
		return leaveDao.getLeave(leave);
	}

	@Override
	public List<String> findLvType() {
		// TODO Auto-generated method stub
		return leaveDao.findLvType();
	}



}
